﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace C_高级编程
{
    /// <summary>
    /// 自定义异常类
    /// </summary>
    public class DiyExceptionType:Exception
    {
        public DiyExceptionType(string Message):base(Message)//使用Exception父类的构造方法，用异常消息来实例化 
        { 
            
        }
    }


    /// <summary>
    /// 建议异常类
    /// </summary>
    public class IssueException : Exception
    { 
        /// <summary>
        /// 建议异常构造函数
        /// </summary>
        /// <param name="Message">异常信息</param>
        public IssueException(string Message):base (Message) 
        { 
            
        }
    }
}
